<div class="modal-header">
    <h4 class="modal-title">{{item.id?'编辑':'添加'}}学校</h4>
</div>
    <div class="modal-body form-horizontal">
        <form name="form" novalidate>
            <div class="row">
                <div class="col-xs-8">
                    <div class="form-group">
                        <label class="col-sm-3 control-label required">校名：</label>
                        <div class="col-sm-9">
                            <input type="text" ng-model="item.name" class="form-control" required>
                        </div>
                    </div>
                    <div class="form-group">

                        <label class="col-sm-3 control-label required">编码：</label>
                        <div class="col-sm-3 ">
                            <input type="text" ng-model="item.code" class="form-control" required>
                        </div>
                        <label class="col-sm-3 control-label">排名：</label>
                        <div class="col-sm-3">
                            <input type="text" ng-model="item.ranking" class="form-control">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">省：</label>
                        <div class="col-sm-3">
                            <input type="text" ng-model="item.sheng" class="form-control">
                        </div>
                        <label class="col-sm-3 control-label">级别：</label>
                        <div class="col-sm-3">
                            <select class="form-control" ng-model="item.level"
                                    ng-options="o[0] as o[1] for o in $root.levelDict">
                                <option value="">--请选择--</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-4">
                    <a class="thumbnail">
                        <img onerror="javascript:this.src='/admin/images/detail.png';"
                             ng-click="showPhoto()"
                             ng-src="{{processImgUrl(item.logo)}}">
                        <div class="caption">
                            <p>
                                <button class="btn btn-warning btn-sm" ng-click="clearPhoto(item,'logo')"><i
                                        class="glyphicon glyphicon-remove"></i></button>
                                <button class="btn btn-default btn-sm" ng-click="addPhoto(item,'logo')"><i
                                        class="glyphicon glyphicon-picture "></i></button>
                            </p>
                        </div>
                    </a>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">985：</label>
                <div class="col-sm-1 mt7">
                    <input type="checkbox" ng-model="item.is985" ng-true-value="'985'"  ng-false-value="''"  >

                </div>
                <label class="col-sm-2 control-label">211：</label>
                <div class="col-sm-1 mt7">
                    <input type="checkbox" ng-model="item.is211" ng-true-value="'211'"  ng-false-value="''" >
                </div>
                <label class="col-sm-2 control-label">性质：</label>
                <div class="col-sm-4">
                    <select class="form-control" ng-model="item.nature"
                            ng-options="o[0] as o[1] for o in $root.natureDict">
                        <option value="">--请选择--</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">电话：</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="item.phone" class="form-control">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">邮箱：</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="item.email" class="form-control">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">地址：</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="item.address" class="form-control">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">网址：</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="item.site" class="form-control">
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-2 control-label">视频url：</label>
                <div class="col-sm-10">
                    <input type="text" ng-model="item.videoUrl" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">招生章程：</label>
                <div class="col-sm-10">
                    <input type="url" ng-model="item.policyUrl" class="form-control" placeholder="http://***">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">学校简介：</label>
                <div class="col-sm-12">
                    <div class="ueditor" ng-model="item.info" style="width:100%;max-height:200px;overflow: auto" ></div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">收费方式：</label>
                <div class="col-sm-12">
                    <div class="ueditor" ng-model="item.shoufei" style="width:100%;max-height:200px;overflow: auto" ></div>
                </div>
            </div>

        </form>
    </div>
<div class="modal-footer">
    <button class="btn btn-primary" ng-click="save(form)">确认</button>
    <button class="btn btn-warning" ng-click="$dismiss()">取消</button>
</div>
